package com.quanquan.user.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 功能描述:会员积分交易明细
 *
 * @ClassName: PointsTradingDetails
 * @Author: xiaoqianh丶
 * @Date: 2019-03-12 10:27
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "oo_integral_trading_details")
public class IntegralTradingDetails implements Serializable {

    /** 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 交易订单号
     */
    @Column(name = "order_num", nullable = false, length = 64)
    private String orderNum;

    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    /**
     * 交易说明
     */
    @Column(name = "trading_content", nullable = false, length = 128)
    private String tradingContent;


    /**
     * 交易动作 0 收入 ，1 付出
     */
    @Column(name = "trade_action", columnDefinition = "TINYINT default 0",nullable = false)
    private Integer tradeAction;

    /**
     * 交易积分数
     */
    @Column(name = "integral_point", nullable = false, length = 32)
    private String integralPoint;


    /**
     *积分消费分类
     */
    @Column(name = "consume_type", nullable = false, length = 32)
    private String consumeType;


    /**
     * 个人积分总额
     */
    @Column(name = "integr_balalance", length = 32)
    private String integrBalalance;


    /**
     * 关联外键ID
     */
    @Column(name = "foreign_key_id",length = 64)
    private String foreignKeyId;


    /**
     * 用户id
     */
    @Column(name = "user_id",length = 64)
    private String userId;




}
